Initializes a new instance of the class. Initializes a new instance of the class, with the specified OPC server and item descriptors, OPC group parameters, user-defined state object, and a typed callback method.
Syntax
'Declaration
Public Function New( _
ByVal As ServerDescriptor, _
ByVal As DAItemDescriptor, _
ByVal As DAGroupParameters, _
ByVal As OpcLabs.EasyOpc.DataAccess.Generic.EasyDAItemChangedEventHandler(Of T), _
ByVal As Object _
)
'Usage
Dim serverDescriptor As ServerDescriptor
Dim itemDescriptor As DAItemDescriptor
Dim groupParameters As DAGroupParameters
Dim callback As OpcLabs.EasyOpc.DataAccess.Generic.EasyDAItemChangedEventHandler(Of T)
Dim state As Object
Dim instance As New EasyDAItemSubscriptionArguments(Of T)(serverDescriptor, itemDescriptor, groupParameters, callback, state)
public EasyDAItemSubscriptionArguments<T>(
ServerDescriptor ,
DAItemDescriptor ,
DAGroupParameters ,
OpcLabs.EasyOpc.DataAccess.Generic.EasyDAItemChangedEventHandler<T> ,
object
)
public:
EasyDAItemSubscriptionArguments<T>(
ServerDescriptor^ ,
DAItemDescriptor^ ,
DAGroupParameters^ ,
OpcLabs.EasyOpc.DataAccess.Generic.EasyDAItemChangedEventHandler<T^>^ ,
Object^
)
Parameters
- serverDescriptor
- The OPC server involved in the operation.
- itemDescriptor
- The OPC item involved in the operation.
- groupParameters
- An object containing subscription parameters, such as the requested update rate.
- callback
- A typed callback method to be invoked for each significant item change.
- state
- The state object (can be any value supplied by your code); available in event notifications.
Requirements
Target Platforms: .NET Framework: Windows 10 (selected versions), Windows 11 (selected versions), Windows Server 2016, Windows Server 2022; .NET: Linux, macOS, Microsoft Windows
See Also